# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
pkgname=zfs-prune-snapshots
pkgver=1.5.0
pkgrel=0
pkgdesc="Remove snapshots from one or more zpools that match given criteria"
url="https://github.com/bahamas10/zfs-prune-snapshots"
arch="noarch !armhf !armv7"
license="MIT"
checkdepends="shellcheck"
depends="bash zfs"
subpackages="$pkgname-doc"
options="!check" # check() requires shellcheck
source="$pkgname-$pkgver.tar.gz::https://github.com/bahamas10/zfs-prune-snapshots/archive/v$pkgver.tar.gz
	"

check() {
	make check
}

package() {
	make install PREFIX="/usr" DESTDIR="$pkgdir"
}

sha512sums="
d7e3aa832cb5f91735bb57cd2af07a7d32433a829f9e090846b96cfffe565bdc8625c17bb72719f42d9f807ec1a3692a144578c4fc801928680a55ae5bba7b26  zfs-prune-snapshots-1.5.0.tar.gz
"
